<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Utils.Ppr.Colour</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-2"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-3"></span><span>
</span><span id="line-4"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Maybe.html#"><span class="hs-identifier">Data.Maybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.Maybe.html#fromMaybe"><span class="hs-identifier">fromMaybe</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-5"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Misc.html"><span class="hs-identifier">GHC.Utils.Misc</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Utils.Misc.html#OverridingBool"><span class="hs-identifier">OverridingBool</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Utils.Misc.html#split"><span class="hs-identifier">split</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-6"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Semigroup.html#"><span class="hs-identifier">Data.Semigroup</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">Semi</span></span><span>
</span><span id="line-7"></span><span>
</span><span id="line-8"></span><span class="hs-comment">-- | A colour\/style for use with 'coloured'.</span><span>
</span><span id="line-9"></span><span class="hs-keyword">newtype</span><span> </span><span id="PprColour"><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-var">PprColour</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="PprColour"><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-var">PprColour</span></a></span></span><span> </span><span class="hs-special">{</span><span> </span><span id="renderColour"><span class="annot"><span class="annottext">PprColour -&gt; String
</span><a href="GHC.Utils.Ppr.Colour.html#renderColour"><span class="hs-identifier hs-var hs-var">renderColour</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-special">}</span><span>
</span><span id="line-10"></span><span>
</span><span id="line-11"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680784137"><span id="local-6989586621680784139"><span class="annot"><a href="../../base/src/GHC.Base.html#Semigroup"><span class="hs-identifier hs-type">Semi.Semigroup</span></a></span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-12"></span><span>  </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span> </span><span id="local-6989586621680784133"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784133"><span class="hs-identifier hs-var">s1</span></a></span></span><span> </span><span id="local-6989586621680784132"><span class="annot"><span class="annottext">&lt;&gt; :: PprColour -&gt; PprColour -&gt; PprColour
</span><a href="../../base/src/GHC.Base.html#%3C%3E"><span class="hs-operator hs-var hs-var hs-var hs-var">&lt;&gt;</span></a></span></span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span> </span><span id="local-6989586621680784131"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784131"><span class="hs-identifier hs-var">s2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-var">PprColour</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784133"><span class="hs-identifier hs-var">s1</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. Semigroup a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784131"><span class="hs-identifier hs-var">s2</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-13"></span><span>
</span><span id="line-14"></span><span class="hs-comment">-- | Allow colours to be combined (e.g. bold + red);</span><span>
</span><span id="line-15"></span><span class="hs-comment">--   In case of conflict, right side takes precedence.</span><span>
</span><span id="line-16"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621680784125"><span class="annot"><a href="../../base/src/GHC.Base.html#Monoid"><span class="hs-identifier hs-type">Monoid</span></a></span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-17"></span><span>  </span><span id="local-6989586621680784121"><span class="annot"><span class="annottext">mempty :: PprColour
</span><a href="../../base/src/GHC.Base.html#mempty"><span class="hs-identifier hs-var hs-var hs-var hs-var">mempty</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-var">PprColour</span></a></span><span> </span><span class="annot"><span class="annottext">String
forall a. Monoid a =&gt; a
</span><a href="../../base/src/GHC.Base.html#mempty"><span class="hs-identifier hs-var">mempty</span></a></span><span>
</span><span id="line-18"></span><span>  </span><span id="local-6989586621680784119"><span class="annot"><span class="annottext">mappend :: PprColour -&gt; PprColour -&gt; PprColour
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-identifier hs-var hs-var hs-var hs-var">mappend</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; PprColour -&gt; PprColour
forall a. Semigroup a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#%3C%3E"><span class="hs-operator hs-var">(&lt;&gt;)</span></a></span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#renderColourAfresh"><span class="hs-identifier hs-type">renderColourAfresh</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-21"></span><span id="renderColourAfresh"><span class="annot"><span class="annottext">renderColourAfresh :: PprColour -&gt; String
</span><a href="GHC.Utils.Ppr.Colour.html#renderColourAfresh"><span class="hs-identifier hs-var hs-var">renderColourAfresh</span></a></span></span><span> </span><span id="local-6989586621680784117"><span class="annot"><span class="annottext">PprColour
</span><a href="#local-6989586621680784117"><span class="hs-identifier hs-var">c</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; String
</span><a href="GHC.Utils.Ppr.Colour.html#renderColour"><span class="hs-identifier hs-var hs-var">renderColour</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colReset"><span class="hs-identifier hs-var">colReset</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; PprColour -&gt; PprColour
forall a. Monoid a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-operator hs-var">`mappend`</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="#local-6989586621680784117"><span class="hs-identifier hs-var">c</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-type">colCustom</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-24"></span><span id="colCustom"><span class="annot"><span class="annottext">colCustom :: String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var hs-var">colCustom</span></a></span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;&quot;</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour
forall a. Monoid a =&gt; a
</span><a href="../../base/src/GHC.Base.html#mempty"><span class="hs-identifier hs-var">mempty</span></a></span><span>
</span><span id="line-25"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span id="local-6989586621680784114"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784114"><span class="hs-identifier hs-var">s</span></a></span></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-var">PprColour</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;\27[&quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784114"><span class="hs-identifier hs-var">s</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;m&quot;</span></span><span class="hs-special">)</span><span>
</span><span id="line-26"></span><span>
</span><span id="line-27"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colReset"><span class="hs-identifier hs-type">colReset</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-28"></span><span id="colReset"><span class="annot"><span class="annottext">colReset :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colReset"><span class="hs-identifier hs-var hs-var">colReset</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;0&quot;</span></span><span>
</span><span id="line-29"></span><span>
</span><span id="line-30"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colBold"><span class="hs-identifier hs-type">colBold</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-31"></span><span id="colBold"><span class="annot"><span class="annottext">colBold :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBold"><span class="hs-identifier hs-var hs-var">colBold</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;;1&quot;</span></span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colBlackFg"><span class="hs-identifier hs-type">colBlackFg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-34"></span><span id="colBlackFg"><span class="annot"><span class="annottext">colBlackFg :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBlackFg"><span class="hs-identifier hs-var hs-var">colBlackFg</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;30&quot;</span></span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colRedFg"><span class="hs-identifier hs-type">colRedFg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-37"></span><span id="colRedFg"><span class="annot"><span class="annottext">colRedFg :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colRedFg"><span class="hs-identifier hs-var hs-var">colRedFg</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;31&quot;</span></span><span>
</span><span id="line-38"></span><span>
</span><span id="line-39"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colGreenFg"><span class="hs-identifier hs-type">colGreenFg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-40"></span><span id="colGreenFg"><span class="annot"><span class="annottext">colGreenFg :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colGreenFg"><span class="hs-identifier hs-var hs-var">colGreenFg</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;32&quot;</span></span><span>
</span><span id="line-41"></span><span>
</span><span id="line-42"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colYellowFg"><span class="hs-identifier hs-type">colYellowFg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-43"></span><span id="colYellowFg"><span class="annot"><span class="annottext">colYellowFg :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colYellowFg"><span class="hs-identifier hs-var hs-var">colYellowFg</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;33&quot;</span></span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colBlueFg"><span class="hs-identifier hs-type">colBlueFg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-46"></span><span id="colBlueFg"><span class="annot"><span class="annottext">colBlueFg :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBlueFg"><span class="hs-identifier hs-var hs-var">colBlueFg</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;34&quot;</span></span><span>
</span><span id="line-47"></span><span>
</span><span id="line-48"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colMagentaFg"><span class="hs-identifier hs-type">colMagentaFg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-49"></span><span id="colMagentaFg"><span class="annot"><span class="annottext">colMagentaFg :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colMagentaFg"><span class="hs-identifier hs-var hs-var">colMagentaFg</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;35&quot;</span></span><span>
</span><span id="line-50"></span><span>
</span><span id="line-51"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colCyanFg"><span class="hs-identifier hs-type">colCyanFg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-52"></span><span id="colCyanFg"><span class="annot"><span class="annottext">colCyanFg :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCyanFg"><span class="hs-identifier hs-var hs-var">colCyanFg</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;36&quot;</span></span><span>
</span><span id="line-53"></span><span>
</span><span id="line-54"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#colWhiteFg"><span class="hs-identifier hs-type">colWhiteFg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-55"></span><span id="colWhiteFg"><span class="annot"><span class="annottext">colWhiteFg :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colWhiteFg"><span class="hs-identifier hs-var hs-var">colWhiteFg</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;37&quot;</span></span><span>
</span><span id="line-56"></span><span>
</span><span id="line-57"></span><span class="hs-keyword">data</span><span> </span><span id="Scheme"><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#Scheme"><span class="hs-identifier hs-var">Scheme</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-58"></span><span>  </span><span id="Scheme"><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#Scheme"><span class="hs-identifier hs-var">Scheme</span></a></span></span><span>
</span><span id="line-59"></span><span>  </span><span class="hs-special">{</span><span> </span><span id="sHeader"><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sHeader"><span class="hs-identifier hs-var hs-var">sHeader</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-60"></span><span>  </span><span class="hs-special">,</span><span> </span><span id="sMessage"><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sMessage"><span class="hs-identifier hs-var hs-var">sMessage</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-61"></span><span>  </span><span class="hs-special">,</span><span> </span><span id="sWarning"><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sWarning"><span class="hs-identifier hs-var hs-var">sWarning</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-62"></span><span>  </span><span class="hs-special">,</span><span> </span><span id="sError"><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sError"><span class="hs-identifier hs-var hs-var">sError</span></a></span></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-63"></span><span>  </span><span class="hs-special">,</span><span> </span><span id="sFatal"><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sFatal"><span class="hs-identifier hs-var hs-var">sFatal</span></a></span></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-64"></span><span>  </span><span class="hs-special">,</span><span> </span><span id="sMargin"><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sMargin"><span class="hs-identifier hs-var hs-var">sMargin</span></a></span></span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#PprColour"><span class="hs-identifier hs-type">PprColour</span></a></span><span>
</span><span id="line-65"></span><span>  </span><span class="hs-special">}</span><span>
</span><span id="line-66"></span><span>
</span><span id="line-67"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#defaultScheme"><span class="hs-identifier hs-type">defaultScheme</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#Scheme"><span class="hs-identifier hs-type">Scheme</span></a></span><span>
</span><span id="line-68"></span><span id="defaultScheme"><span class="annot"><span class="annottext">defaultScheme :: Scheme
</span><a href="GHC.Utils.Ppr.Colour.html#defaultScheme"><span class="hs-identifier hs-var hs-var">defaultScheme</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-69"></span><span>  </span><span class="annot"><span class="annottext">Scheme :: PprColour
-&gt; PprColour
-&gt; PprColour
-&gt; PprColour
-&gt; PprColour
-&gt; PprColour
-&gt; Scheme
</span><a href="GHC.Utils.Ppr.Colour.html#Scheme"><span class="hs-identifier hs-type">Scheme</span></a></span><span>
</span><span id="line-70"></span><span>  </span><span class="hs-special">{</span><span> </span><span class="annot"><span class="annottext">sHeader :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sHeader"><span class="hs-identifier hs-var">sHeader</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour
forall a. Monoid a =&gt; a
</span><a href="../../base/src/GHC.Base.html#mempty"><span class="hs-identifier hs-var">mempty</span></a></span><span>
</span><span id="line-71"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sMessage :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sMessage"><span class="hs-identifier hs-var">sMessage</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBold"><span class="hs-identifier hs-var">colBold</span></a></span><span>
</span><span id="line-72"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sWarning :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sWarning"><span class="hs-identifier hs-var">sWarning</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBold"><span class="hs-identifier hs-var">colBold</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; PprColour -&gt; PprColour
forall a. Monoid a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-operator hs-var">`mappend`</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colMagentaFg"><span class="hs-identifier hs-var">colMagentaFg</span></a></span><span>
</span><span id="line-73"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sError :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sError"><span class="hs-identifier hs-var">sError</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBold"><span class="hs-identifier hs-var">colBold</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; PprColour -&gt; PprColour
forall a. Monoid a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-operator hs-var">`mappend`</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colRedFg"><span class="hs-identifier hs-var">colRedFg</span></a></span><span>
</span><span id="line-74"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sFatal :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sFatal"><span class="hs-identifier hs-var">sFatal</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBold"><span class="hs-identifier hs-var">colBold</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; PprColour -&gt; PprColour
forall a. Monoid a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-operator hs-var">`mappend`</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colRedFg"><span class="hs-identifier hs-var">colRedFg</span></a></span><span>
</span><span id="line-75"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sMargin :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sMargin"><span class="hs-identifier hs-var">sMargin</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBold"><span class="hs-identifier hs-var">colBold</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; PprColour -&gt; PprColour
forall a. Monoid a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-operator hs-var">`mappend`</span></a></span><span> </span><span class="annot"><span class="annottext">PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colBlueFg"><span class="hs-identifier hs-var">colBlueFg</span></a></span><span>
</span><span id="line-76"></span><span>  </span><span class="hs-special">}</span><span>
</span><span id="line-77"></span><span>
</span><span id="line-78"></span><span class="hs-comment">-- | Parse the colour scheme from a string (presumably from the @GHC_COLORS@</span><span>
</span><span id="line-79"></span><span class="hs-comment">-- environment variable).</span><span>
</span><span id="line-80"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#parseScheme"><span class="hs-identifier hs-type">parseScheme</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Utils.Misc.html#OverridingBool"><span class="hs-identifier hs-type">OverridingBool</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#Scheme"><span class="hs-identifier hs-type">Scheme</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Utils.Misc.html#OverridingBool"><span class="hs-identifier hs-type">OverridingBool</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#Scheme"><span class="hs-identifier hs-type">Scheme</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-81"></span><span id="parseScheme"><span class="annot"><span class="annottext">parseScheme :: String -&gt; (OverridingBool, Scheme) -&gt; (OverridingBool, Scheme)
</span><a href="GHC.Utils.Ppr.Colour.html#parseScheme"><span class="hs-identifier hs-var hs-var">parseScheme</span></a></span></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;always&quot;</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OverridingBool
</span><span class="hs-identifier">_</span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680784095"><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784095"><span class="hs-identifier hs-var">cs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OverridingBool
</span><a href="GHC.Utils.Misc.html#Always"><span class="hs-identifier hs-var">Always</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784095"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-82"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#parseScheme"><span class="hs-identifier hs-var">parseScheme</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;auto&quot;</span></span><span>   </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OverridingBool
</span><span class="hs-identifier">_</span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680784093"><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784093"><span class="hs-identifier hs-var">cs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OverridingBool
</span><a href="GHC.Utils.Misc.html#Auto"><span class="hs-identifier hs-var">Auto</span></a></span><span class="hs-special">,</span><span>   </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784093"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-83"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#parseScheme"><span class="hs-identifier hs-var">parseScheme</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;never&quot;</span></span><span>  </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OverridingBool
</span><span class="hs-identifier">_</span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680784091"><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784091"><span class="hs-identifier hs-var">cs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">OverridingBool
</span><a href="GHC.Utils.Misc.html#Never"><span class="hs-identifier hs-var">Never</span></a></span><span class="hs-special">,</span><span>  </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784091"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-84"></span><span class="annot"><a href="GHC.Utils.Ppr.Colour.html#parseScheme"><span class="hs-identifier hs-var">parseScheme</span></a></span><span> </span><span id="local-6989586621680784089"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784089"><span class="hs-identifier hs-var">input</span></a></span></span><span>    </span><span class="hs-special">(</span><span id="local-6989586621680784088"><span class="annot"><span class="annottext">OverridingBool
</span><a href="#local-6989586621680784088"><span class="hs-identifier hs-var">b</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680784087"><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784087"><span class="hs-identifier hs-var">cs</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-85"></span><span>  </span><span class="hs-special">(</span><span> </span><span class="annot"><span class="annottext">OverridingBool
</span><a href="#local-6989586621680784088"><span class="hs-identifier hs-var">b</span></a></span><span>
</span><span id="line-86"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">Scheme :: PprColour
-&gt; PprColour
-&gt; PprColour
-&gt; PprColour
-&gt; PprColour
-&gt; PprColour
-&gt; Scheme
</span><a href="GHC.Utils.Ppr.Colour.html#Scheme"><span class="hs-identifier hs-type">Scheme</span></a></span><span>
</span><span id="line-87"></span><span>    </span><span class="hs-special">{</span><span> </span><span class="annot"><span class="annottext">sHeader :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sHeader"><span class="hs-identifier hs-var">sHeader</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; Maybe PprColour -&gt; PprColour
forall a. a -&gt; Maybe a -&gt; a
</span><a href="../../base/src/Data.Maybe.html#fromMaybe"><span class="hs-identifier hs-var">fromMaybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sHeader"><span class="hs-identifier hs-var hs-var">sHeader</span></a></span><span> </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784087"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span>  </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; [(String, PprColour)] -&gt; Maybe PprColour
forall a b. Eq a =&gt; a -&gt; [(a, b)] -&gt; Maybe b
</span><a href="../../base/src/GHC.List.html#lookup"><span class="hs-identifier hs-var">lookup</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;header&quot;</span></span><span> </span><span class="annot"><span class="annottext">[(String, PprColour)]
</span><a href="#local-6989586621680784085"><span class="hs-identifier hs-var">table</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-88"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sMessage :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sMessage"><span class="hs-identifier hs-var">sMessage</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; Maybe PprColour -&gt; PprColour
forall a. a -&gt; Maybe a -&gt; a
</span><a href="../../base/src/Data.Maybe.html#fromMaybe"><span class="hs-identifier hs-var">fromMaybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sMessage"><span class="hs-identifier hs-var hs-var">sMessage</span></a></span><span> </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784087"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; [(String, PprColour)] -&gt; Maybe PprColour
forall a b. Eq a =&gt; a -&gt; [(a, b)] -&gt; Maybe b
</span><a href="../../base/src/GHC.List.html#lookup"><span class="hs-identifier hs-var">lookup</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;message&quot;</span></span><span> </span><span class="annot"><span class="annottext">[(String, PprColour)]
</span><a href="#local-6989586621680784085"><span class="hs-identifier hs-var">table</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-89"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sWarning :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sWarning"><span class="hs-identifier hs-var">sWarning</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; Maybe PprColour -&gt; PprColour
forall a. a -&gt; Maybe a -&gt; a
</span><a href="../../base/src/Data.Maybe.html#fromMaybe"><span class="hs-identifier hs-var">fromMaybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sWarning"><span class="hs-identifier hs-var hs-var">sWarning</span></a></span><span> </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784087"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; [(String, PprColour)] -&gt; Maybe PprColour
forall a b. Eq a =&gt; a -&gt; [(a, b)] -&gt; Maybe b
</span><a href="../../base/src/GHC.List.html#lookup"><span class="hs-identifier hs-var">lookup</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;warning&quot;</span></span><span> </span><span class="annot"><span class="annottext">[(String, PprColour)]
</span><a href="#local-6989586621680784085"><span class="hs-identifier hs-var">table</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-90"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sError :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sError"><span class="hs-identifier hs-var">sError</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; Maybe PprColour -&gt; PprColour
forall a. a -&gt; Maybe a -&gt; a
</span><a href="../../base/src/Data.Maybe.html#fromMaybe"><span class="hs-identifier hs-var">fromMaybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sError"><span class="hs-identifier hs-var hs-var">sError</span></a></span><span> </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784087"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span>   </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; [(String, PprColour)] -&gt; Maybe PprColour
forall a b. Eq a =&gt; a -&gt; [(a, b)] -&gt; Maybe b
</span><a href="../../base/src/GHC.List.html#lookup"><span class="hs-identifier hs-var">lookup</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;error&quot;</span></span><span>   </span><span class="annot"><span class="annottext">[(String, PprColour)]
</span><a href="#local-6989586621680784085"><span class="hs-identifier hs-var">table</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-91"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sFatal :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sFatal"><span class="hs-identifier hs-var">sFatal</span></a></span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; Maybe PprColour -&gt; PprColour
forall a. a -&gt; Maybe a -&gt; a
</span><a href="../../base/src/Data.Maybe.html#fromMaybe"><span class="hs-identifier hs-var">fromMaybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sFatal"><span class="hs-identifier hs-var hs-var">sFatal</span></a></span><span> </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784087"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span>   </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; [(String, PprColour)] -&gt; Maybe PprColour
forall a b. Eq a =&gt; a -&gt; [(a, b)] -&gt; Maybe b
</span><a href="../../base/src/GHC.List.html#lookup"><span class="hs-identifier hs-var">lookup</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;fatal&quot;</span></span><span>   </span><span class="annot"><span class="annottext">[(String, PprColour)]
</span><a href="#local-6989586621680784085"><span class="hs-identifier hs-var">table</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-92"></span><span>    </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">sMargin :: PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sMargin"><span class="hs-identifier hs-var">sMargin</span></a></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PprColour -&gt; Maybe PprColour -&gt; PprColour
forall a. a -&gt; Maybe a -&gt; a
</span><a href="../../base/src/Data.Maybe.html#fromMaybe"><span class="hs-identifier hs-var">fromMaybe</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Scheme -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#sMargin"><span class="hs-identifier hs-var hs-var">sMargin</span></a></span><span> </span><span class="annot"><span class="annottext">Scheme
</span><a href="#local-6989586621680784087"><span class="hs-identifier hs-var">cs</span></a></span><span class="hs-special">)</span><span>  </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String -&gt; [(String, PprColour)] -&gt; Maybe PprColour
forall a b. Eq a =&gt; a -&gt; [(a, b)] -&gt; Maybe b
</span><a href="../../base/src/GHC.List.html#lookup"><span class="hs-identifier hs-var">lookup</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;margin&quot;</span></span><span>  </span><span class="annot"><span class="annottext">[(String, PprColour)]
</span><a href="#local-6989586621680784085"><span class="hs-identifier hs-var">table</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-93"></span><span>    </span><span class="hs-special">}</span><span>
</span><span id="line-94"></span><span>  </span><span class="hs-special">)</span><span>
</span><span id="line-95"></span><span>  </span><span class="hs-keyword">where</span><span>
</span><span id="line-96"></span><span>    </span><span id="local-6989586621680784085"><span class="annot"><span class="annottext">table :: [(String, PprColour)]
</span><a href="#local-6989586621680784085"><span class="hs-identifier hs-var hs-var">table</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-97"></span><span>      </span><span id="local-6989586621680784081"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784081"><span class="hs-identifier hs-var">w</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">Char -&gt; String -&gt; [String]
</span><a href="GHC.Utils.Misc.html#split"><span class="hs-identifier hs-var">split</span></a></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">':'</span></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784089"><span class="hs-identifier hs-var">input</span></a></span><span>
</span><span id="line-98"></span><span>      </span><span class="hs-keyword">let</span><span> </span><span class="hs-special">(</span><span id="local-6989586621680784079"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784079"><span class="hs-identifier hs-var">k</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680784078"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784078"><span class="hs-identifier hs-var">v'</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Char -&gt; Bool) -&gt; String -&gt; (String, String)
forall a. (a -&gt; Bool) -&gt; [a] -&gt; ([a], [a])
</span><a href="../../base/src/GHC.List.html#break"><span class="hs-identifier hs-var">break</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Char -&gt; Char -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'='</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784081"><span class="hs-identifier hs-var">w</span></a></span><span>
</span><span id="line-99"></span><span>      </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784078"><span class="hs-identifier hs-var">v'</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-100"></span><span>        </span><span class="annot"><span class="annottext">Char
</span><span class="hs-char">'='</span></span><span> </span><span class="annot"><span class="hs-glyph hs-type">:</span></span><span> </span><span id="local-6989586621680784076"><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784076"><span class="hs-identifier hs-var">v</span></a></span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">(String, PprColour) -&gt; [(String, PprColour)]
forall (m :: * -&gt; *) a. Monad m =&gt; a -&gt; m a
</span><a href="../../base/src/GHC.Base.html#return"><span class="hs-identifier hs-var">return</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784079"><span class="hs-identifier hs-var">k</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String -&gt; PprColour
</span><a href="GHC.Utils.Ppr.Colour.html#colCustom"><span class="hs-identifier hs-var">colCustom</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="#local-6989586621680784076"><span class="hs-identifier hs-var">v</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-101"></span><span>        </span><span class="annot"><span class="annottext">String
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">]</span><span>
</span><span id="line-102"></span></pre></body></html>